<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery.min/jquery.min.js"></script>
    <script src="../../../音频/黑胶唱片/colorizer.js"></script>
    <style>
        /* body,
        ul,
        li {
            margin: 0;
            padding: 0;
        }

        body {
            background: #333;
        } */

        div.audio {
            position: relative;
            top: 100px;
            left: 100px;
            background: #eee;
            width: 400px;
            height: 400px;
            transition: all 0.3s;
            box-shadow: 33px 24px 10px 0 rgba(0, 0, 0, 0.2);
        }

        div.colorizer {
            position: absolute;
            left: 0;
            top: 0;
            width: 400px;
            height: 400px;
            transition: all 0.3s;
            z-index: 3;
        }

        div.echolizer {
            background: #fff;
            position: absolute;
            left: 0;
            bottom: 0;
            z-index: 10;
            width: 0;
            height: 4px;
            transition: all 0.3s;
        }

        div.audio img {
            width: 400px;
        }

        div.disk {
            background-image: url("../../../音频/黑胶唱片/cd.png");
            width: 350px;
            height: 350px;
            position: absolute;
            right: -140px;
            background-size: cover;
            z-index: -1;
            top: 34px;
            -webkit-animation: rotating 2s linear infinite;
            -moz-animation: rotating 2s linear infinite;
            -ms-animation: rotating 2s linear infinite;
            -o-animation: rotating 2s linear infinite;
            animation: rotating 2s linear infinite;
            border-radius: 50%;
        }

        @-webkit-keyframes rotating

        /* Safari and Chrome */
            {
            from {
                -ms-transform: rotate(0deg);
                -moz-transform: rotate(0deg);
                -webkit-transform: rotate(0deg);
                -o-transform: rotate(0deg);
                transform: rotate(0deg);
            }

            to {
                -ms-transform: rotate(360deg);
                -moz-transform: rotate(360deg);
                -webkit-transform: rotate(360deg);
                -o-transform: rotate(360deg);
                transform: rotate(360deg);
            }
        }

        @keyframes rotating {
            from {
                -ms-transform: rotate(0deg);
                -moz-transform: rotate(0deg);
                -webkit-transform: rotate(0deg);
                -o-transform: rotate(0deg);
                transform: rotate(0deg);
            }

            to {
                -ms-transform: rotate(360deg);
                -moz-transform: rotate(360deg);
                -webkit-transform: rotate(360deg);
                -o-transform: rotate(360deg);
                transform: rotate(360deg);
            }
        }

        .box {
            width: 200px;
            height: 150px;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="audio">
            <div class="echolizer"></div>
            <div class="colorizer"></div>
            <div class="disk"></div>
            <img src="../../../音频/黑胶唱片/cover.jpg">
        </div>
    </div>
    <script>
        $.colorizer("div.colorizer", {
            file: "",
            shadow: ".colorizer",
            echolizer: ".echolizer"
        });
    </script>
</body>

</html>